import request from "@/utils/request";

// 查询列表
export function getList(data) {
  return request({
    url: "/base/notice/list",
    method: "get",
    params: data,
  });
}

// add 列表
export function addList(data) {
  return request({
    url: "/base/notice/insert",
    method: "post",
    data: data,
  });
}
// update 列表
export function updateList(data) {
  return request({
    url: "/base/notice/update",
    method: "post",
    data: data,
  });
}
// delete 列表
export function deleteList(data) {
  return request({
    url: "/base/notice/deleteBatch?ids=" + data,
    method: "post",
  });
}
// 置顶
export function topping(data) {
  return request({
    url: "/base/notice/topping/" + data,
    method: "post",
  });
}

// 取消置顶
export function cancelTopping(data) {
  return request({
    url: "/base/notice/cancelTopping/" + data,
    method: "post",
  });
}
